package com.wework.task;

import com.wework.api.DepartmentObject;

import java.util.List;

public class EnvHelperTask {

    public static void deleteAllDept(){
        List<Integer> deptIds= DepartmentObject.listDept("").path("department.id");
        for (Integer deptId : deptIds) {

            if (1==deptId)
                continue;
            DepartmentObject.deleteDept(deptId+"");
        }
    }
}
